<template>
  <div id="app">
    <!-- 挂载点 -->
    <router-view></router-view>
    <!-- 脚部切换栏 -->
    <tab-bar v-if="$route.meta.showTabbar"></tab-bar>
  </div>
</template>

<script>
// TabBar/index.vue--会自动寻找
import TabBar from "./components/TabBar/index.vue";
export default {
  name: "App",
  components: { TabBar },
  mounted() {
    console.log(this.$route);
  },
};
</script>

<style>
@import "./style/base.css";
@import "./fonts/iconfont.css";
body {
  background-color: #f4f4f4;
}
</style>
